package com.freemalll.merchant.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freemalll.merchant.domain.dto.merchantParameters.MerParamsDetailDTO;
import com.freemalll.merchant.domain.entity.merchantParameters.MerParamsDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 映射层。
 *
 * @author jianglr
 * @since 2025-03-05
 */
@Mapper
public interface MerParamsDetailMapper extends BaseMapper<MerParamsDetail> {

    String getIdByParamCode(String merParamId, String paramKey);


    List<MerParamsDetailDTO> selectListByDetailsId(@Param("id") String id);

    List<MerParamsDetailDTO> selectListByMerParamsId(@Param("detailIds") List<String> detailIds);

    List<MerParamsDetailDTO> selectListByParams(@Param("id") String id, @Param("parentId") String parentId);

    List<MerParamsDetailDTO> selectListByParentId(@Param("parentIdList") List<String> parentIdList);
}
